package cqrtplm.service.impl;


import cqrtplm.entity.DspfMbomAppointsourceDO;
import cqrtplm.mapper.DspfMbomAppointsourceMapper;
import cqrtplm.service.DspfMbomAppointsourceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (DSPF_MBOM_APPOINTSOURCE)表服务实现类
 *
 * @author admin
 * @since 2025-07-17 20:30:14
 */
@Service("dspfMbomAppointsourceService")
public class DspfMbomAppointsourceServiceImpl implements DspfMbomAppointsourceService {
    @Resource
    private DspfMbomAppointsourceMapper dspfMbomAppointsourceMapper;

    /**
     * 通过ID查询单条数据
     *
     * @return 实例对象
     */
    @Override
    public DspfMbomAppointsourceDO queryById( ) {
        return this.dspfMbomAppointsourceMapper.selectByPrimaryKey();
    }

    /**
     * 新增数据
     *
     * @param DspfMbomAppointsourceDO 实例对象
     * @return 实例对象
     */
    @Override
    public DspfMbomAppointsourceDO insert(DspfMbomAppointsourceDO DspfMbomAppointsourceDO) {
        this.dspfMbomAppointsourceMapper.insert(DspfMbomAppointsourceDO);
        return DspfMbomAppointsourceDO;
    }

    /**
     * 通过主键删除数据
     *
     * @return 是否成功
     */
    @Override
    public boolean deleteById( ) {
        return this.dspfMbomAppointsourceMapper.deleteByPrimaryKey() > 0;
    }
}

